package com.pitaya.avatar.domain;

import java.io.Serializable;
import java.util.Set;


public class Area implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long areaID;
	private Set<POI> nodes;
	
	public Long getAreaID() {
		return areaID;
	}
	
	public void setAreaID(long id) {
		this.areaID = id;
	}
	
	public Set<POI> getNodes(){
		return nodes;
	}
	
	public void setNodes(Set<POI> pois){
		this.nodes = pois;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(this == obj)
			return true;
		if(obj != null && obj instanceof Area){
			if(((Area)obj).getAreaID().equals(this.getAreaID()))
				return true;
		}
		return false;
	}
	
	@Override
	public int hashCode() { 
		return this.getAreaID().hashCode();
	}
	
}
